package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagOrderReadRecordDO;
import com.starlink.model.request.SchoolbagOrderReadRecordRequest;
import com.starlink.model.vo.SchoolbagOrderReadRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagOrderReadRecordDtoMapper {

    SchoolbagOrderReadRecordDtoMapper INSTANCE = Mappers.getMapper(SchoolbagOrderReadRecordDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagOrderReadRecordDO
    * @return
    */
    SchoolbagOrderReadRecordVO do2VO(SchoolbagOrderReadRecordDO schoolbagOrderReadRecordDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagOrderReadRecordDO request2DO(SchoolbagOrderReadRecordRequest request);
}
